package com.javasm.crm.controller.aftersale;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.javasm.crm.common.http.AxiosResult;
import com.javasm.crm.domin.criteria.repositrory.InOrderCriteria;
import com.javasm.crm.domin.entity.aftersale.Inorder;
import com.javasm.crm.service.aftersale.IInorderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lirui
 * @since 2021-07-14
 */
@RestController
@RequestMapping("/crm/inorder")
public class InorderController {

    @Resource
    private IInorderService inorderService;

    @GetMapping("getInorder")
    public AxiosResult getInorder(InOrderCriteria inOrderCriteria){

        Page<Inorder> page = inorderService.find(inOrderCriteria);

        return AxiosResult.success(page);
    }
}
